// 引入Vue
import Vue from 'vue'
// 引入VueRouter
import VueRouter from 'vue-router'

// 全局引入VueRouter
Vue.use(VueRouter)

const router = new VueRouter({ mode: 'history' })

router.addRoute({ path: '/', name: 'Main', component: () => import('views/Main') , redirect: '/home' })
router.addRoute({ path: '/login', name: 'login', component: () => import('views/Login/login.vue') })

export default router;